<script src="script.js"></script>

<input type="file" onchange="window.predict(this.files[0])" />